TestBehaviorTree6 = BTBehaviorTree:New()

local this = TestBehaviorTree6
this.name = "测试行为树1"

function this:New()
    local o = {}
    setmetatable(o, self)
    self.__index = self
    o:Init()
    return o
end

function this:Init()
    local sequence=BTSequence:New()
    local log1=BTLog:New("LogTest 1")
    local log2 = BTLog:New("LogTest 2")
    local repeater=BTRepeater:New(3)
    local log3 = BTLog:New("LogTest 3")

    self:SetStartTask(sequence)

    sequence:AddChild(log1)
    sequence:AddChild(log2)
    sequence:AddChild(repeater)
    repeater:AddChild(log3)
end
